package com.kh.statistics.video.entity.converter;

import com.kh.statistics.video.base.ClientEnum;
import com.kh.statistics.video.base.ConverterBase;
import com.kh.statistics.video.entity.VideoAccountStatusVO;
import com.kh.statistics.video.entity.VideoAccountsHealth;
import org.mapstruct.Mapper;
import org.mapstruct.Mapping;
import org.mapstruct.Mappings;

@Mapper(componentModel = "spring", uses = {ClientEnum.class})
public interface VideoAccountStatusVOConverter extends ConverterBase<VideoAccountsHealth, VideoAccountStatusVO> {

    @Mappings({
            @Mapping(target = "clientName", source = "client", qualifiedByName = "getClientName"),
    })
    @Override
    VideoAccountStatusVO convert(VideoAccountsHealth t);
}
